package designMode.structrueMode.adapter.cls;

import designMode.structrueMode.adapter.Source;
import designMode.structrueMode.adapter.Targetable;

/**
 * Created by Administrator on 2018/4/11.
 */
public class Adapter extends Source implements Targetable {
    @Override
    public void method2() {
        System.out.println("this is the targetable method!");
    }

    public static void main(String[] args) {
        Targetable target = new Adapter();
        target.method1();
        target.method2();
    }
}
